package com.qaml.mes.device.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 检保记录表
 * </p>
 *
 * @author leikai
 * @since 2024-02-27
 */
@Getter
@Setter
@TableName("t_mes_check_upkeep_record")
public class CheckUpkeepRecordDO extends BaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 检保项目编号
     */
    @TableField("check_upkeep_id")
    private String checkUpkeepId;

    /**
     * 设备id
     */
    @TableField("eqp_id")
    private String eqpId;

    /**
     * 设备编码
     */
    @TableField("eqp_code")
    private String eqpCode;

    /**
     * 设备名称
     */
    @TableField("eqp_name")
    private String eqpName;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 是否有异常 0 无异常 1 有异常
     */
    @TableField("err_result")
    private Integer errResult;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    /**
     * 检保周期
     */
    @TableField("cycle")
    private String cycle;

    /**
     * 线体
     */
    @TableField("line_body")
    private String lineBody;

    /**
     * 图片地址
     */
    @TableField("image_url")
    private String imageUrl;

    /**
     * 检保日期
     */
    @TableField("check_upkeep_date")
    private Date checkUpkeepDate;

    /**
     * 检保开始时间
     */
    @TableField("check_upkeep_start_time")
    private Date checkUpkeepStartTime;

    /**
     * 检保结束时间
     */
    @TableField("check_upkeep_end_time")
    private Date checkUpkeepEndTime;

    /**
     * 检保人id
     */
    @TableField("check_upkeep_user_id")
    private String checkUpkeepUserId;

    /**
     * 检保人名称
     */
    @TableField("check_upkeep_user_name")
    private String checkUpkeepUserName;

    /**
     * 检保提交时间
     */
    @TableField("check_upkeep_commit_date")
    private Date checkUpkeepCommitDate;

    /**
     * 复核人id
     */
    @TableField("recheck_user_id")
    private String recheckUserId;

    /**
     * 复核人名称
     */
    @TableField("recheck_user_name")
    private String recheckUserName;

    /**
     * 复核提交时间
     */
    @TableField("recheck_commit_date")
    private Date recheckCommitDate;

    /**
     * 归档人id
     */
    @TableField("archive_user_id")
    private String archiveUserId;

    /**
     * 归档人名称
     */
    @TableField("archive_user_name")
    private String archiveUserName;

    /**
     * 归档提交时间
     */
    @TableField("archive_commit_time")
    private Date archiveCommitTime;

    /**
     * 是否请假 0 未请假 1 请假
     */
    @TableField("holiday_apply_tip")
    private Integer holidayApplyTip;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    private Long tenantId;


}
